package webEquipeRechercheGwt.server.webEquipeRechercheServices;


import java.util.Collection;

import webEquipeRechercheGwt.client.entityMirror.PersonMirror;
import webEquipeRechercheGwt.client.services.PersonService;
import webEquipeRechercheGwt.server.rmiManager.RmiManager;


import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class PersonServiceImpl extends RemoteServiceServlet implements PersonService  {

	/**
	 * 
	 */
	private static final long serialVersionUID = -822183351351091856L;


	@Override
	public Collection<PersonMirror> getPersons() {
		RmiManager rmi = new RmiManager();
		return rmi.getWebEquipeRechercheFacade().getPersonsMirrors();
	}


	@Override
	public boolean createPerson(PersonMirror p) {
		RmiManager rmi = new RmiManager();
		return rmi.getWebEquipeRechercheFacade().createPerson(p);
	}

}
